
# ifndef __DFX_DLL_MAIN_H__
# define __DFX_DLL_MAIN_H__

# include "dfxEditor.h"

namespace DFX
{
    extern Editor *gEditor;

    extern "C"
    {
        Int32 DFX_EXPORT_ONLY EditorMain(UInt32 topHandle, UInt32 topWidth, UInt32 topHeight,
            UInt32 leftHandle, UInt32 leftWidth, UInt32 leftHeight,
            UInt32 rightHandle, UInt32 rightWidth, UInt32 rightHeight,
            UInt32 perspHandle, UInt32 perspWidth, UInt32 perspHeight);

        void DFX_EXPORT_ONLY EditorRender(UInt32 index);
        void DFX_EXPORT_ONLY EditorDestroy();
        
        void DFX_EXPORT_ONLY EditorWndProc(UInt32 handle, UInt32 msg, UInt32 wParam, UInt32 lParam);
        void DFX_EXPORT_ONLY EditorSwapBuffers(UInt32 index);
    }
}

# endif